import Vue from 'vue'
import App from './App.vue'

import Element from 'element-ui'
import '@/styles/element-variables.scss'
import '@/styles/index.scss'
import '@/icons'

import router from './router'
import store from './store'
import '@/api'

// 拷贝
import VueClipboard from 'vue-clipboard2'
VueClipboard.config.autoSetContainer = true
Vue.use(VueClipboard)

import * as filters from './filters' // 全局过滤器
// 遍历所有全局过滤方法
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

Vue.use(Element)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store,
}).$mount('#app')
